<%@page import="dao.EmDao"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<% int id=Integer.parseInt(request.getParameter("id")); 
request.setAttribute("em", EmDao.FindOneById(id));
%>
<form action="Update">
姓名<input type="text" value="${em.name }" name="name">
性别<input type="text" value="${em.sex }" name="sex"><br>
年龄<input type="text" value="${em.age }" name="age">
部门<input type="text" value="${em.dapartment }" name="dapartment"><br>
职务<input type="text" value="${em.type }" name="type">
工龄<input type="text" value="${em.year }" name="year"><br>
<input type="hidden" value="${em.id}" name="id">
<input type="submit" value="修改">
</form>
</body>
</html>